#include <thread>
#include <chrono>
#include <stdio.h>
#include "VideoWapper.h"
int main()
{
	VideoWapper tVideoWapper;

	tVideoWapper.Connect();
	VideoWapperParams tVideoWapperParams;

	tVideoWapperParams.m_ip_type = 0;
	tVideoWapperParams.m_local_ip = "0.0.0.0";
	tVideoWapperParams.m_local_port = 58004;
	tVideoWapperParams.m_remote_ip = "127.0.0.1";
	tVideoWapperParams.m_remote_port = 58004;
	tVideoWapperParams.m_pcap_sender = "uag_ps.pcap";
	tVideoWapperParams.m_pcap_receive = "uag_ps_re.pcap";

	int ret = tVideoWapper.SetRemoteSDP(tVideoWapperParams);
	printf("ret :%d \n", ret);
	int8_t buffer[1500];
	for (int i = 0; i < 10; i++)
	{
		//tVideoWapper.IncomingRtp((const int8_t *)buffer, 1500);

		std::this_thread::sleep_for(std::chrono::milliseconds(1000));
	}
	tVideoWapper.ReleaseConnect();
	getchar();

	return 0;
}